home *** CD-ROM | disk | FTP | other *** search
- Path: news.internex.net!usenet
- From: ian_stewart@nyro.com (Ian H. Stewart)
- Newsgroups: comp.lang.c,comp.lang.objective-c
- Subject: Comma Delimited function wanted
- Date: 11 Jan 1996 00:20:18 GMT
- Organization: InterNex Information Services 1-800-595-3333
- Distribution: world
- Message-ID: <4d1l42$mb6@voyager.Internex.NET>
- Reply-To: ian_stewart@nyro.com (Ian H. Stewart)
- NNTP-Posting-Host: ws03.nyro.com
-
- Help with a comma delimited function needed.
-
- I did this once before, but I am blocked and can't
- find the original source.
-
- Here is what I need to do:
-
- I have a buffer full of text.
-
- char buffer = "3740067099,914885AC2,P03,5000";
-
- I have four char vars to put this into.
-
- char field1[20], field2[20], field3[20], field4[20];
-
- What I want to do is get this as the end result.
-
-
- field1 = 3740067099
- field2 = 914885AC2
- field3 = P03
- field4 = 5000
-
-
- Anyway, help is appreciated.
-
- ian
-